<template>
  <div class="c-martin__toast__contain">
    <martin-button @click="showMessage('error')">错误</martin-button>
    <martin-button @click="showMessage('success')">成功</martin-button>
  </div>
</template>

<script>
import Button from '@/package/Button/src/Button'

export default {
  name: 'MartionToastContian',
  components: {
    'martin-button': Button
  },
  methods: {
    showMessage(type) {
      this.$message[type]('tithis')
      // this.$message({
      //   type,
      //   message: '提示',
      //   duration: 3000
      // })
    }
  }
}
</script>
